package org.example;


import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;

/**
 * @Author: luyg
 * @Date: 2024/05/09/21:26
 * @Description:
 */

@ServletComponentScan
@ComponentScans(value = {
        @ComponentScan(value = "cc.wellcloud.cloud"),
        @ComponentScan(value = "cc.wellcloud.session.*"),
        @ComponentScan(value = "org.example.*")
})
@SpringBootApplication
public class Main {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(Main.class, args);
        ConfigurableListableBeanFactory beanFactory = run.getBeanFactory();
        beanFactory.getBean("sessionSpringFilter");
        Object sessionSpringFilter = run.getBean("sessionSpringFilter");
        System.out.println(sessionSpringFilter);
    }
}